<?php
header("Content-Type: text/plain; charset=UTF-8");

require_once("config.inc.php");
require_once(INCLUDE_PATH . "db.inc.php");
require_once(INCLUDE_PATH . "blog.inc.php");

$keyword = $_GET['keywords'];
if(!$keyword)exit();

$blog = new Blog();
$results = $blog->GetPostTitle(1,$keyword);
$results2 = array();
foreach($results as $re){
	array_push($results2, $re['F_POSTS_TITLE']);
}
echo json_encode($results2);

?>